<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<title>注册(1/3)</title>
		<link href="../../css/mui.min.css" rel="stylesheet" />
		<link rel="stylesheet" href="../../css/XY.css" />
	</head>

	<body>
		<header class="mui-bar mui-bar-nav" style="background: #0072DC;">
			<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left" style="color: #FFFFFF;"><span style="font-size: 18px;color: #FFFFFF;">返回</span></a>
			<h1 class="mui-title" id="title" style="font-size: 20px;color: #FFFFFF;">注册(1/3)</h1>
		</header>
		<div class="mui-content">
			<form class="mui-input-group">
				<div class="mui-input-row" style="margin: 35px 0 35px 0;">
					<input id='account' type="text" class="mui-input-clear mui-input" placeholder="请输入手机号">
				</div>
			</form>
			<div class="mui-content-padded">
				<button id='reg' class="mui-btn main-btn-block" ><span style="color: #FFFFFF;font-size: 18px;">注册</span></button>
			</div>
			<div class="mui-text-center">
				<p>点击注册，即代表您同意<a>《用户协议》</a></p>
			</div>
		</div>
		<script src="../../js/mui.min.js"></script>
		<script src="../../js/app.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript" charset="utf-8">
			mui.init();
			mui.plusReady(function () {
				var current = plus.webview.currentWebview();
				var srcwb=current.srcwb;
				document.getElementById("reg").addEventListener('tap',function () {
					var telephone=document.getElementById("account").value;
					if(!telephone){
						plus.nativeUI.toast('请填写手机号');
						return;
					}
					// 注册
					user.getauthcode('Reg',telephone,function () {
						plus.nativeUI.toast('验证码已发至短信');
						openPage('register2.html','register2.html',{tel:telephone,srcwb:srcwb});
					});
				});
				showPage(current);
			});
		</script>
	</body>

</html>